using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._CrimeAnalysisandSafetyTools._CellPhoneAnalysis
{
    /// <summary>
    /// <para>Generate Call Links</para>
    /// <para>Creates line features that represent the call links between phones, using cell site points or cell site antenna sectors, based on the start date and time of the call.</para>
    /// <para>根据呼叫的开始日期和时间，使用蜂窝基站点或蜂窝基站天线扇区创建表示电话之间呼叫链路的线路要素。</para>
    /// </summary>    
    [DisplayName("Generate Call Links")]
    public class GenerateCallLinks : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GenerateCallLinks()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_primary_features">
        /// <para>Input Primary Phone Record Site Points or Sectors</para>
        /// <para>The point feature class for the primary phone or sector derived from the Cell Phone Records To Feature Class tool.</para>
        /// <para>从手机记录到要素类工具派生的主要电话或扇区的点要素类。</para>
        /// </param>
        /// <param name="_in_secondary_features">
        /// <para>Input Secondary Phone Record Site Points or Sectors</para>
        /// <para>The point feature class for the secondary phone or sector derived from the Cell Phone Records To Feature Class tool.</para>
        /// <para>从手机记录到要素类工具派生的辅助电话或扇区的点要素类。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Call Link Lines</para>
        /// <para>The output line features representing the call links between two phones at various locations.</para>
        /// <para>输出线路要素表示位于不同位置的两部电话之间的呼叫链路。</para>
        /// </param>
        public GenerateCallLinks(object _in_primary_features, object _in_secondary_features, object _out_feature_class)
        {
            this._in_primary_features = _in_primary_features;
            this._in_secondary_features = _in_secondary_features;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Crime Analysis and Safety Tools";

        public override string ToolName => "Generate Call Links";

        public override string CallName => "ca.GenerateCallLinks";

        public override List<string> AcceptEnvironments => ["MDomain", "MResolution", "MTolerance", "XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "autoCommit", "configKeyword", "extent", "geographicTransformations", "maintainAttachments", "outputCoordinateSystem", "outputMFlag", "outputZFlag", "outputZValue", "qualifiedFieldNames", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_primary_features, _in_secondary_features, _out_feature_class, _output_type.GetGPValue(), _primary_subscriber_field, _primary_destination_field, _primary_start_time_field, _secondary_subscriber_field, _secondary_destination_field, _secondary_start_time_field];

        /// <summary>
        /// <para>Input Primary Phone Record Site Points or Sectors</para>
        /// <para>The point feature class for the primary phone or sector derived from the Cell Phone Records To Feature Class tool.</para>
        /// <para>从手机记录到要素类工具派生的主要电话或扇区的点要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Primary Phone Record Site Points or Sectors")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_primary_features { get; set; }


        /// <summary>
        /// <para>Input Secondary Phone Record Site Points or Sectors</para>
        /// <para>The point feature class for the secondary phone or sector derived from the Cell Phone Records To Feature Class tool.</para>
        /// <para>从手机记录到要素类工具派生的辅助电话或扇区的点要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Secondary Phone Record Site Points or Sectors")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_secondary_features { get; set; }


        /// <summary>
        /// <para>Output Call Link Lines</para>
        /// <para>The output line features representing the call links between two phones at various locations.</para>
        /// <para>输出线路要素表示位于不同位置的两部电话之间的呼叫链路。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Call Link Lines")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Output Type</para>
        /// <para><xdoc>
        ///   <para>Specifies how the relationship of calls between two phones will be analyzed and symbolized.</para>
        ///   <bulletList>
        ///     <bullet_item>Summary—A summary record of the total number of calls between two phones at various locations will be created. This is the default.</bullet_item><para/>
        ///     <bullet_item>Detail—An individual record of each call between two phones at various locations will be created.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定如何分析和符号化两部电话之间的呼叫关系。</para>
        ///   <bulletList>
        ///     <bullet_item>摘要 - 将创建位于不同位置的两部电话之间的呼叫总数的摘要记录。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>详细信息—将创建位于不同位置的两部电话之间的每次呼叫的单独记录。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _output_type_value _output_type { get; set; } = _output_type_value._SUMMARY;

        public enum _output_type_value
        {
            /// <summary>
            /// <para>Summary</para>
            /// <para>Summary—A summary record of the total number of calls between two phones at various locations will be created. This is the default.</para>
            /// <para>摘要 - 将创建位于不同位置的两部电话之间的呼叫总数的摘要记录。这是默认设置。</para>
            /// </summary>
            [Description("Summary")]
            [GPEnumValue("SUMMARY")]
            _SUMMARY,

            /// <summary>
            /// <para>Detail</para>
            /// <para>Detail—An individual record of each call between two phones at various locations will be created.</para>
            /// <para>详细信息—将创建位于不同位置的两部电话之间的每次呼叫的单独记录。</para>
            /// </summary>
            [Description("Detail")]
            [GPEnumValue("DETAIL")]
            _DETAIL,

        }

        /// <summary>
        /// <para>Primary Phone Subscriber ID Field</para>
        /// <para>The unique ID field for the primary phone subscriber, usually a phone number.</para>
        /// <para>主要电话用户的唯一 ID 字段，通常为电话号码。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Primary Phone Subscriber ID Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _primary_subscriber_field { get; set; } = null;


        /// <summary>
        /// <para>Primary Phone Call Destination Field</para>
        /// <para>The field containing the phone number of the secondary phone.</para>
        /// <para>包含辅助电话的电话号码的字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Primary Phone Call Destination Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _primary_destination_field { get; set; } = null;


        /// <summary>
        /// <para>Primary Phone Call Start Date and Time Field</para>
        /// <para>The start date and time field of the primary phone records.</para>
        /// <para>主要电话记录的开始日期和时间字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Primary Phone Call Start Date and Time Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _primary_start_time_field { get; set; } = null;


        /// <summary>
        /// <para>Secondary Phone Subscriber ID Field</para>
        /// <para>The unique ID field for the secondary phone subscriber, usually a phone number.</para>
        /// <para>辅助电话用户的唯一 ID 字段，通常为电话号码。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Secondary Phone Subscriber ID Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _secondary_subscriber_field { get; set; } = null;


        /// <summary>
        /// <para>Secondary Phone Destination Field</para>
        /// <para>The field containing the phone number of the primary phone.</para>
        /// <para>包含主电话的电话号码的字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Secondary Phone Destination Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _secondary_destination_field { get; set; } = null;


        /// <summary>
        /// <para>Secondary Phone Call Start Date and Time Field</para>
        /// <para>The start date and time field of the secondary phone records.</para>
        /// <para>辅助电话记录的开始日期和时间字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Secondary Phone Call Start Date and Time Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _secondary_start_time_field { get; set; } = null;


        public GenerateCallLinks SetEnv(object MDomain = null, object MResolution = null, object MTolerance = null, object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, int? autoCommit = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object outputMFlag = null, object outputZFlag = null, object outputZValue = null, bool? qualifiedFieldNames = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(MDomain: MDomain, MResolution: MResolution, MTolerance: MTolerance, XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, autoCommit: autoCommit, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, outputMFlag: outputMFlag, outputZFlag: outputZFlag, outputZValue: outputZValue, qualifiedFieldNames: qualifiedFieldNames, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}